package com.corewillsoft.fireflies.gameobjects.obstacles;

import java.util.Arrays;
import java.util.List;

import com.corewillsoft.fireflies.gamelaws.LawType;
import com.corewillsoft.fireflies.gameobjects.fireflyraces.Color;

public class Frog extends Obstacle {

	private static final List<LawType> supportedLaws = Arrays.asList();
	private static final List<LawType> createdLaws = Arrays
			.asList(LawType.FROG_FIREFLY);

	private static final int FROG_WIDTH = 50;
	private static final int FROG_HEIGHT = 60;
	private static final Color FROG_COLOR = new Color(0.4f, 1.0f, 0.4f);

	public Frog(int x, int y) {
		super(x, y);
		init();
	}

	private void init() {
		setWidth(FROG_WIDTH);
		setHeight(FROG_HEIGHT);
		setColor(FROG_COLOR.getRed(), FROG_COLOR.getGreen(), FROG_COLOR.getBlue());
	}

	@Override
	public void updateState() {
	}

	@Override
	public ObstacleType getType() {
		return ObstacleType.FROG;
	}

	@Override
	public boolean isActive() {
		return true;
	}

	@Override
	protected List<LawType> getSupportedLaws() {
		return supportedLaws;
	}

	@Override
	protected List<LawType> getCreatedLaws() {
		return createdLaws;
	}
}
